package Main;

import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

import factory.LoadBalancerItf;

public class MainFactoryDelete {
	public static void main(String[] args) throws RemoteException, NotBoundException {
		Registry registry = LocateRegistry.getRegistry();
		LoadBalancerItf lb = (LoadBalancerItf) registry.lookup("LoadBalancer");
		lb.getFactory(0).terminate();
	}
}
